package com.yanqu.road.server.timer.summergames;

import com.yanqu.road.server.manager.activity.summergames.CrossSummerGamesActivity;
import com.yanqu.road.server.manager.activity.summergames.CrossSummerGamesMgr;
import com.yanqu.road.utils.executor.GeneralTask;

import java.util.Map;

public class CrossSummerGamesTask extends GeneralTask {

    @Override
    public void doRun() {
        try{
            for (Map.Entry<Integer, CrossSummerGamesActivity> entry : CrossSummerGamesMgr.getActivityMap().entrySet()) {
                entry.getValue().cancelApplyInTimeOut();
            }
        }catch (Exception e){
            getLOGGER().error("", e);
        }
    }
}
